<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@ include file="/common/include/page.jsp" %>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<title>新闻列表 - 卡尔信息</title>
		<%@ include file="/common/include/title.jsp" %>
	</head>
	<body>
		<%@ include file="/common/include/header.jsp" %>
		<!-- 广告 -->
		<div class="jumbotron adv">
			<img src="${rootPath}/img/news_adv.jpg" title="卡尔信息新闻资讯"  class="img-responsive">
		</div>
		<!-- 内容页面 -->
		<div class="container body">
			<div class="row">
				<div class="col-md-11 col-md-offset-1">
					<ul class="media-list newlist">
						<c:forEach items="${requestScope.newsList }" var="news" varStatus="stat">
							<li class="media">
								<div class="media-left hidden-xs">
									<a href="newsinfo.htm?newsID=${news.id}" target="_blank" title="${news.title }">
										<c:choose>
											<c:when test="${news.imgPath != null && news.imgPath != ''}">
												<img class="media-object img-rounded" src="${rootPath}/${news.imgPath}" title="${news.title }">
											</c:when>
											<c:otherwise>
												<img class="media-object img-rounded" src="${rootPath}/img/no_pic.jpg" title="${news.title }">
											</c:otherwise>
										</c:choose>
									</a>
								</div>
								<div class="media-body new-content">
									<h4 class="media-heading new-title">
										<a href="newsinfo.htm?newsID=${news.id}" target="_blank" title="${news.title }">[${news.source}]${news.title }</a>
									</h4>
									<div class="new-body">
										${fn:substring(news.brief,0,500) }
									</div>
									<div class="new-footer">
									<!--  ${rootPath}/news_info_1.html -->
										<a href="${rootPath}/newsinfo.htm?newsID=${news.id}" target="_blank"><span class="pull-left visible-lg"></span> 点击查看全部</a>
										<span><fmt:formatDate value="${news.pubTime }" pattern="yyyy-MM-dd HH:mm:ss"/></span>
									</div>
								</div>
							</li>
						</c:forEach>
					</ul>
				</div>
			</div>
		</div>
		<%@ include file="/common/include/footer.jsp" %>
	</body>
</html>